#include<stdio.h>
int main()
{

    int y;
    scanf("%d",&y);
    int flag=(y%4==0&&y%100!=0)||y%400==0;
    if(flag)
        puts("Leap Year");
    else puts("Poor Year");
    return 0;

}
